import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '../components/lazyLoad';

export const arrangement = lazy(
  () =>
    import(
      /* webpackChunkName: "ScatteredRecord" */ '@/view/scatteredRecord/Arrangement/ArrangementMain'
    )
);

const scatteredRoutes: any[] = [
  {
    element: <Layout />,
    children: [
      {
        path: '/scattered/index',
        element: lazyLoad(arrangement),
        meta: {
          title: '散文件管理'
        }
      }
    ]
  }
];

export default scatteredRoutes;
